exports.add=[
{
	_type:"controller",
	_config_details: {	
	},
	_config: {
		path:"adminpanel/",
		name:"AdminGuestbooks",
		admin:1,
		role_code:"guestbooks",
		admin_start_widgets:[{mode:"admin_start_widget",name:"Last messages in guestbook",body:"Shows last messages pending your attention",image:"/shared/adminpanel/images/adminstart/guestbook.png"}]
	},
	
	_admin_nav: [
		{section:"modules",name:"Guestbooks",mode:"index"}
	],

	/**
	 * Controller: AdminGuestbooks.index 
	 *
	 * Returns:
	 *		HTML
	 */
	index: function(config) {
		this.guestbooks=this.site.models.Guestbook.List();
		return this.Cview();
	},

	admin_start_widget: function() {
		if (!this.roles.guestbooks) return "";
		return this.Cview();
	}
}];

